package com.csu.mall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.csu.mall.common.utils.PageUtils;
import com.csu.mall.product.entity.CategoryEntity;
import com.csu.mall.product.vo.Catelog2Vo;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author zhenhuanli
 * @email 743879362@qq.com
 * @date 2022-09-16 11:42:54
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<CategoryEntity> listWithTree();

    Long[] getCatelogPath(Long catelogId);

    void updateEntity(CategoryEntity category);

    List<CategoryEntity> getLevel1Categories();

    Map<String, List<Catelog2Vo>> getCatalogJson();

    Map<String, List<Catelog2Vo>> getCatalogJsonFromDb();
}

